using UnityEngine;

public class EnableSoundSource : MonoBehaviour
{
	private void OnEnable()
	{
		AudioSource component = GetComponent<AudioSource>();
		if (component != null)
		{
			component.enabled = VolumeController.IsSoundEnable;
		}
	}
}
